const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar, // 头像地址
  avatar_sha: state => state.user.avatarGiteeSha, // 头像sha值
  avatar_fileName: state => state.user.avatarFileName, // 文件名称
  name: state => state.user.name, // 用户名
  username: state => state.user.username, // 个人昵称
  userinfo: state => state.user,
  usercode: state => state.user.usercode, // 用户编号
  roles: state => state.user.roles, // 角色名
  permission_routes: state => state.permission.routes
}
export default getters
